package org.goldenport.g3

import java.io.File
import org.goldenport.session._
import org.goldenport.g3.messages.Record

/**
 * @since   Oct. 10, 2010
 * @version Oct. 12, 2010
 * @author  ASAMI, Tomoharu
 */
class G3User(val name: String) extends java.io.Serializable {
  def getAuthentication(uri: String): Option[G3Authentication] = {
    error("XXX")
  }
}

object G3User {
  def apply(r: Record) = {
    new G3User(
      r.asString('username))
  }
}

object SystemUser extends G3User("system") {
  
}
